package iq.junit;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
 * expected=UnsupportedDBVersionException.class
 * timeout=1000
 *  @ Ignore(“db is down”) 

 * @author Administrator
 *
 */
public class Sample {
	@Before
	public void initMethod() {
		System.out.println("开始准备...");
	}
	
	@BeforeClass
	public static void initClass() {
		System.out.println("开始准备类范围...");
	}
	
	@Test
	public void m() {
		System.out.println("执行方法...");
	}
	@Test
	public void m2() {
		System.out.println("执行方法2...");
	}
	
	@After
	public void destroyMethod() {
		System.out.println("方法结束...");
	}
	
	@AfterClass
	public static void destroyClass() {
		System.out.println("类结束...");
	}
}
